package com.derbysoft.ota.application.util;

import com.derbysoft.ota.application.translator.CodeTables;
import com.derbysoft.ota.interfaces.protocol._2009a.POSType;
import com.derbysoft.ota.interfaces.protocol._2009a.SourceType;
import com.derbysoft.ota.interfaces.protocol._2009a.SourceType.RequestorID;

public abstract class POSTypes {

	public static POSType of(String requestorId) {
		POSType pos = new POSType();
		SourceType source = new SourceType();
		RequestorID requestor = new RequestorID();
		requestor.setID(requestorId);
		requestor.setType(CodeTables.UIT_TRAVEL_AGENCY);
		source.setRequestorID(requestor);
		pos.getSource().add(source);
		return pos;
	}

}
